

package com.hazelcast.map.listener;

import com.hazelcast.core.EntryEvent;
import com.hazelcast.map.MapLoader;
import com.hazelcast.spi.annotation.NamespacesSupported;

/**
 * Invoked upon load of an entry.
 * <p>
 * EntryLoadedListener is notified upon load of an entry by a {@link
 * MapLoader}. By using this listener and
 * {@link EntryAddedListener}, one can distinguish an application put from
 * map-loader load.
 *
 * @param <K> the type of key.
 * @param <V> the type of value.
 * @since 3.11
 */
@FunctionalInterface
@NamespacesSupported
public interface EntryLoadedListener<K, V> extends MapListener {

    /**
     * Invoked upon load of an entry.
     *
     * @param event the event invoked when an entry is loaded
     */
    void entryLoaded(EntryEvent<K, V> event);
}
